<template>
  <Title title="推荐 MV" />
  <div class="grid grid-flow-row grid-cols-2 lg:grid-cols-4 gap-5">
    <div v-for="item in recommendMvList" :key="item.id">
      <CoverMark video :pic-url="item.picUrl" :play-count="item.playCount" :name="item.name" />
      <div class="truncate text-xs mt-2">{{ item.name }}</div>
      <div class="truncate text-xs mt-1.5 text-slate-400">
        <small>{{ item.artistName }}</small>
      </div>
    </div>
  </div>
</template>

<script lang="ts" setup>
import { useVideoStore } from '@/stores/video'
import { toRefs } from 'vue'
import CoverMark from '../cover-mark/coverMark.vue'

const { getRecommendMvList, recommendMvList } = toRefs(useVideoStore())
getRecommendMvList.value()
</script>

<style lang="less" scoped></style>
